package cn.nuist.dao;

import cn.nuist.entity.OrderItems;
import cn.nuist.entity.OrderItemsView;
import cn.nuist.entity.OrderSummaryView;
import cn.nuist.entity.Orders;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

public interface BillDao {
    Integer getCount();
    Integer getCountByName(String customerName);

    List<OrderSummaryView> getByPage(Integer start, Integer pageSize);

    List<OrderItemsView> getdetail(Integer orderID);

    List<OrderSummaryView> getBillByName(Integer start, Integer pageSize, String cutomerName);

    void saveOrders(Orders orders);

    Orders getOrdersByDate(LocalDateTime date);

    void saveOrderItems(OrderItems orderItems);
}
